gtksettings: Fix code snippet
authorTimm Bäder <mail@baedert.org>
Wed, 11 Oct 2017 10:21:20 +0000 (12:21 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 11 Oct 2017 10:21:20 +0000 (12:21 +0200)
gtk_init does not take any arguments anymore and
GTK_TYPE_IMAGE_MENU_ITEM is gone.

gtk/gtksettings.c

index 69b60afadbd92e4c30b49df491ebb8093e294177..cad75a38439fd75eea3242c810af1702575ffc4b 100644 (file)
  * widget type has been realized at least once. The following example
  * demonstrates a way to do this:
  * |[<!-- language="C" -->
- *   gtk_init (&argc, &argv);
+ *   gtk_init ();
  *
  *   // make sure the type is realized
- *   g_type_class_unref (g_type_class_ref (GTK_TYPE_IMAGE_MENU_ITEM));
+ *   g_type_class_unref (g_type_class_ref (GTK_TYPE_BUTTON));
  *
  *   g_object_set (gtk_settings_get_default (), "gtk-enable-animations", FALSE, NULL);
  * ]|